﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Wedo.Recognition.Domain.Mapping;
using Wedo.Recognition.Domain.Models;

namespace Wedo.Recognition.Domain.Mapping
{
    public class PaymentAttach_Mapping : EntityConfiguration<PaymentAttach>
    {
        public PaymentAttach_Mapping()
        {
            HasRequired(m => m.PaymentApply).WithMany(m => m.PaymentAttachs).HasForeignKey(m => m.PaymentApplyId);
            Property(s => s.FileName).HasMaxLength(500).HasColumnType("nvarchar");
            Property(s => s.FilePath).HasMaxLength(500).HasColumnType("nvarchar");

        }
    }
}
